package com.hellobike.haxing.modules.operate.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: advert广告弹框
 * @Author: haxing-boot
 * @Date: 2020-01-08
 * @Version: V1.0
 */
@Data
@TableName("t_operate_advert")
public class OperateAdvert implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private java.lang.Long id;
    /**
     * 名称
     */
    @Excel(name = "名称", width = 15)
    private java.lang.String name;
    /**
     * 图片路径
     */
    @Excel(name = "图片路径", width = 15)
    private java.lang.String href;
    /**
     * 开始时间
     */
    @Excel(name = "开始时间", width = 15, format = "yyyy-MM-dd HH:mm")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private java.util.Date beginTime;
    /**
     * 结束时间
     */
    @Excel(name = "结束时间", width = 15, format = "yyyy-MM-dd HH:mm")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private java.util.Date endTime;
    /**
     * 链接类型1商品详情页2券包3cms
     */
    @Excel(name = "链接类型1商品详情页2券包3cms", width = 15)
    private java.lang.Integer linkType;
    /**
     * 连接地址
     */
    @Excel(name = "连接地址", width = 15)
    @TableField(strategy = FieldStrategy.IGNORED)
    private java.lang.String linkUrl;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date createTime;
    /**
     * 修改时间
     */
    @Excel(name = "修改时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date updateTime;
    /**
     * 0不删除1删除
     */
    @Excel(name = "0不删除1删除", width = 15)
    @TableLogic
    private java.lang.Integer deleted;
    /**
     * 创建人
     */
    @Excel(name = "创建人", width = 15)
    private java.lang.Integer createBy;
    /**
     * 修改人
     */
    @Excel(name = "修改人", width = 15)
    private java.lang.Integer updateBy;
    /**
     * 排序
     */
    @Excel(name = "排序", width = 15)
    @TableField(strategy = FieldStrategy.IGNORED)
    private java.lang.Integer sort;
    /**
     * 连接参数
     */
    @Excel(name = "连接参数", width = 15)
    @TableField(strategy = FieldStrategy.IGNORED)
    private Long linkParam;
    /**
     * 状态1待生效2生效中3已过期
     */
    @TableField(exist = false)
    private Integer status;

    private Integer userType;
}
